package com.zhuojy.equity.mall.admin.common.entity.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.zhuojy.equity.mall.admin.common.entity.TPosition;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @Author:LYL
 * @Date 2024/4/16 16:39
 */
@ToString
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("t_candidate")
public class TCandidatePO implements Serializable {
    private static final long serialVersionUID = -894853411103719291L;
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;
    private String candidateName;
    private Integer age;
    private Integer sex;
    private Long phone;
    private Integer workExperience;
    private Integer education;
    private String major;
    private String school;
    private String company;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date birthday;
    private String email;
    private Integer maritalStatus;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date workDate;
    private String advantage;
    private BigDecimal salaryExpectation;
    private String address;
    private Integer postType;
    private Integer arrivalDate;
    private Integer positionId;
    private Integer status;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date applyForDate;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date updateDate;
    private String updateRemark;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @TableField(exist = false)
    private Date startDate;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @TableField(exist = false)
    private Date endDate;
    @TableField(exist = false)
    private TPosition tposition;
}
